package com.ylyq.ylxx.controller;

import com.ylyq.ylxx.model.ResponseData;
import com.ylyq.ylxx.model.request.DeleteProductRequest;
import com.ylyq.ylxx.model.request.UpdateProductRequest;
import com.ylyq.ylxx.service.IYlyqTypeProductService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 577
 * @className YlyqProductController
 * @date 2020/11/4
 **/
@RestController
@RequestMapping("/ylyq-proruct")
public class YlyqProductController {

    @Autowired
    private IYlyqTypeProductService iYlyqTypeProductService;

    /**
     * 功能描述：删除
     * @author 577
     * @param  
     * @return 
     * @date 2020/11/4
     **/
    @PostMapping("/delete")
    @ApiOperation(value = "删除")
    public ResponseData delete(@RequestBody DeleteProductRequest deleteProductRequest){
        return new ResponseData(ResponseData.Result.SUCCESS);
    }
    
    /**
     * 功能描述：修改
     * @author 577
     * @param  
     * @return 
     * @date 2020/11/4
     **/
    @PostMapping("/update")
    @ApiOperation(value = "修改")
    public ResponseData update(@RequestBody UpdateProductRequest updateProductRequest){
        return new ResponseData(ResponseData.Result.SUCCESS);
    }
    
    /**
     * 功能描述：查询
     * @author 577
     * @param  
     * @return
     * @date 2020/11/4
     **/
    @GetMapping("/list")
    @ApiOperation("查询")
    public ResponseData list(@RequestParam String id){
        return new ResponseData(ResponseData.Result.SUCCESS);
    }
}
